package com.wang.thread;

public class ThreadRunnable implements Runnable {

    volatile int count ;

    public ThreadRunnable(int count){
        this.count = count;
    }

    @Override
    public void run() {
        count++;
        System.out.println(this.count+"===当前执行线程是："+Thread.currentThread().getName());
    }

//    public static void main(String[] args) {
//        Thread thread = new Thread(new ThreadRunnable());
//        thread.start();
//        System.out.println("主线程执行完毕……");
//    }
}
